x86: minor cleanup to arch_memory_op()
authorKeir Fraser <keir.fraser@citrix.com>
Wed, 13 Jan 2010 08:17:00 +0000 (08:17 +0000)
committerKeir Fraser <keir.fraser@citrix.com>
Wed, 13 Jan 2010 08:17:00 +0000 (08:17 +0000)
There's a function-wide variable rc, so no need to re-declare it in
individual case handling blocks.

Signed-off-by: Jan Beulich <jbeulich@novell.com>
xen/arch/x86/mm.c

index 45653ec25ff8cbdb7dbe6e523aa46d8e37e95d0f..5f457e6af4c395e14b0b2eeabb20fd5dc44f9060 100644 (file)
@@ -4235,7 +4235,6 @@ long arch_memory_op(int op, XEN_GUEST_HANDLE(void) arg)
         struct xen_add_to_physmap xatp;
         unsigned long prev_mfn, mfn = 0, gpfn;
         struct domain *d;
-        int rc;
 
         if ( copy_from_guest(&xatp, arg, 1) )
             return -EFAULT;
@@ -4347,7 +4346,6 @@ long arch_memory_op(int op, XEN_GUEST_HANDLE(void) arg)
     {
         struct xen_foreign_memory_map fmap;
         struct domain *d;
-        int rc;
 
         if ( copy_from_guest(&fmap, arg, 1) )
             return -EFAULT;
@@ -4399,7 +4397,6 @@ long arch_memory_op(int op, XEN_GUEST_HANDLE(void) arg)
         struct memory_map_context ctxt;
         XEN_GUEST_HANDLE(e820entry_t) buffer;
         unsigned int i;
-        int rc;
 
         if ( !IS_PRIV(current->domain) )
             return -EINVAL;